package com.lumlord.rpc;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "github-client", url = "https://api.apiopen.top")
public interface FeignTest {
    @RequestMapping(value = "/searchPoetry", method = RequestMethod.GET)
    String searchRepo(@RequestParam("name") String queryStr);

}
